/*
 * Copyright (c) 2021. Moses All Right Reserved
 */

package com.moses.design_patterns.builder.outside_buidler;

/**
 * @author Moses
 * @email shenhuohui@gmail.com
 * @date 2021/4/10 11:36
 */
public class Builder {

    private Product product = new Product();

    protected Builder setProp1(int prop1){
        product.prop1 = prop1;
        return this;
    }

    protected Builder setProp2(double prop2){
        product.prop2 = prop2;
        return this;
    }

    public Product build(){
        return product;
    }
}
